Conversation
This reverts commit 783d575.
|
There was a problem hiding this comment.
Bug: 64-bit Format Specifier Mismatch Bug
The commit introduces a portability bug by replacing PRIu64/PRId64 format specifiers with non-portable %lu/%ld for printing 64-bit integer types (uint64_t, int64_t), and removing the necessary #include <inttypes.h>. This causes format string mismatches and undefined behavior on platforms (e.g., 32-bit systems) where long and unsigned long are 32-bit, leading to incorrect output or data truncation.
libCacheSim/cache/admission/adaptsize/adaptsize_interface.cpp#L3-L93
libCacheSim/dataStructure/splay_tuple.c#L53-L277
libCacheSim/libCacheSim/dataStructure/splay_tuple.c
Lines 53 to 277 in 817d12c
libCacheSim/bin/MRC/main.c#L45-L46
libCacheSim/libCacheSim/bin/MRC/main.c
Lines 45 to 46 in 817d12c
libCacheSim/bin/debug/aligned.c#L144-L145
libCacheSim/libCacheSim/bin/debug/aligned.c
Lines 144 to 145 in 817d12c
BugBot free trial expires on June 25, 2025
You have used $0.00 of your $20.00 spend limit so far. Manage your spend limit in the Cursor dashboard.
Was this report helpful? Give feedback by reacting with 👍 or 👎



Reverts #188